package com.laomou.poker.table;

import com.laomou.poker.rule.PokerRuleType;
import com.laomou.poker.rule.bull.BullTable;
import com.laomou.poker.rule.fried.FriedTable;
import com.laomou.poker.rule.landlord.LandlordTable;

public class TableFactory {

	public static ITable makeTableRule(PokerRuleType type) {
		ITable table = null;
		switch (type) {
		case 斗地主:
			table = new LandlordTable();
			break;
		case 斗牛:
			table = new BullTable();
			break;
		case 炸金花:
			table = new FriedTable();
			break;
		}
		return table;
	}
}
